package cn.panda.edu.dao;

import cn.panda.edu.model.Education;

import java.util.List;

/**
 * 
 * 类描述：  Dao层Education（教学计划）接口类  
 */
public interface EducationMapper {
	/**
	 * 
	* @Title: listEducationByMajorId 
	* @Description: 根据专业id查询该专业的教学计划
	* @param majorId
	* @return  
	* List<Education>
	 */
	List<Education> listEducationByMajorId(Integer majorId);
	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description: 根据主键删除教学计划
	* @param educationPlanId
	* @return  
	* int
	 */
    int deleteByPrimaryKey(Integer educationPlanId);
    
    /**
     * 
    * @Title: insert 
    * @Description: 添加教学计划
    * @param record
    * @return  
    * int
     */
    int insert(Education record);
    
    /**
     * 
    * @Title: insertSelective 
    * @Description: 有选择的添加教学计划
    * @param record
    * @return  
    * int
     */
    int insertSelective(Education record);

    /**
     * 
    * @Title: selectByPrimaryKey 
    * @Description: 根据主键查询教学计划信息 
    * @param educationPlanId
    * @return  
    * Education
     */
    Education selectByPrimaryKey(Integer educationPlanId);
    
    /**
     * 
    * @Title: updateByPrimaryKeySelective 
    * @Description: 根据主键有选择的更新
    * @param record
    * @return  
    * int
     */
    int updateByPrimaryKeySelective(Education record);

    /**
     * 
    * @Title: updateByPrimaryKey 
    * @Description: 根据主键更新全部信息 
    * @param record
    * @return  
    * int
     */
    int updateByPrimaryKey(Education record);
    
    /**
     * 
    * @Title: selectMajorNameByPrimaryKey 
    * @Description: 通过教学计划id查询专业名称
    * @param @param educationPlanId
    * @param @return  
    * @return Education
     */
    Education selectMajorNameByPrimaryKey(Integer educationPlanId);
    
    /**
     * 
    * @Title: selectAll 
    * @Description:  查询所有教学计划信息
    * @param @return  
    * @return List<Education>
     */
    List<Education> selectAll();
}